package com.huawei.appgallery.assistantdock.gamemode.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.beo$d;
import o.beo.f;
import o.bif.c;
import o.bif.d;
import o.bii;

public class GestureEnterCardBuoy extends BuoyBaseEnterCard {
    public GestureEnterCardBuoy(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊ.setText(f.ˌ);
        this.ॱ = bii.ʽ() == c.OPEN;
        ॱॱ();
    }

    void ॱॱ() {
        this.ʼ.setBackgroundResource(this.ॱ ? beo$d.ˊˋ : beo$d.ˊᐝ);
    }

    public void ˋ() {
        this.ॱ = !this.ॱ;
        ॱॱ();
        c cVar = this.ॱ ? c.OPEN : c.CLOSE;
        String str = this.ॱ ? "STATE2" : "STATE1";
        bii.ˏ(cVar);
        ʻ();
        ˏ(str);
    }

    String ᐝ() {
        return d.GSS_GESTURE_DISABLED_MODE.ˊ();
    }
}
